<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>预约管理</title>
<jsp:include page="/WEB-INF/backstage/util.jsp"/>
</head>
<body>
	<form id="myForm" method="post">
		<input type="hidden" name="shop_id" value="${shop_id }">
	<div class="form-inline">
		<div class="form-group">
		<label for="order_id">订单标号</label> <input type="text"
			class="form-control" id="order_id2" name="order_id"
			placeholder="请输入订单编号" value="${order_id }">
		</div>
		<div class="form-group">
		<label for="mobile">顾客账号</label> <input type="text"
			class="form-control" id="mobile2" name="mobile"
			placeholder="请输入顾客手机号" value="${mobile }">
		</div>
		<div class="form-group">
		<label for="username">顾客姓名</label> <input type="text"
			class="form-control" id="username2" name="username"
			placeholder="请输入顾客手机号" value="${username }">
		</div>
		<div class="form-group">
		<label for="subscribe_time">预约日期</label> <input type="date"
			class="form-control" id="subscribe_time2" name="subscribe_time"
			 value="${subscribe_time }">
		</div>
		<button type="button" class="btn btn-primary" onclick="chaxun()">
			<span class="glyphicon glyphicon-plus"></span>综合查询
		</button>
	</div>
		<button type="button" class="btn btn-primary" onclick="tiaozhuan()">
			<span class="glyphicon glyphicon-plus"></span>商家带预约
		</button>
	</form>
	
	<table class="table-hover table-condensed table-bordered" width="100%">
		<tr>
			<th>订单编号</th>
			<th>顾客账号</th>
			<th>顾客姓名</th>
			<th>护理项目</th>
			<th>消费类型</th>
			<th>价格</th>
			<th>定金</th>
			<th>预约时间</th>
			<th>店铺简称</th>
			<th>状态</th>
		</tr>
		<c:forEach items="${listMap }" var="list">
			<tr>
				<td>${list.order_id }</td>
				<td>${list.mobile }</td>
				<td>${list.username }</td>
				<td>${list.order_content }</td>
				<td>${list.order_type=='1'?'美妍币消费':list.order_type=='2'?'礼包消费':list.order_type=='3'?'项目':'未知' }</td>
				<td>${list.order_money }</td>
				<td>${list.pay_money }</td>
				<td>${list.subscribe_time }</td>
				<td>${list.short_name }</td>
				<td>${list.order_status=='0'?'草稿':list.order_status=='1'?'预约':list.order_status=='2'?'服务中':'未知' }</td>
 			</tr>
		</c:forEach>
	</table>
</body>

	<script>
		function chaxun(){
			myForm.action="${pageContext.request.contextPath }/proltal/subsrcibe/selectSubsrcibe";
			myForm.submit();
		}
	
		function tiaozhuan(){
			location.href="${pageContext.request.contextPath }/proltal/subsrcibe/saveSubsrcibeProject?shop_id=${shop_id}";
		}
	</script>


</html>